﻿<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="Cache-Control" content="no-siteapp" />

		<link rel="stylesheet" type="text/css" href="__STATIC__/admin/h-ui/css/H-ui.min.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/admin/h-ui/css/my.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/admin/h-ui.admin/css/H-ui.admin.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/admin/h-ui.admin/skin/default/skin.css" id="skin" />
		<link rel="stylesheet" type="text/css" href="__STATIC__/admin/h-ui.admin/css/style.css" />
		<link rel="stylesheet" href="__STATIC__/admin/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">

		<title>产品分类</title>
	</head>

	<body>
		<nav class="breadcrumb">
			<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 产品管理 <span class="c-gray en">&gt;</span> 分类列表
			<a class="btn btn-primary radius" href="add.html" style="line-height:1.6em;margin-left:500px;margin-top:-3px;"  data-title="分类管理"  >添加分类</a>
			<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;float:right;" href="javascript:location.replace(location.href);" title="刷新">
				<i class="Hui-iconfont">&#xe68f;</i>
			</a>
		</nav>
	<form action="{:url('admin/cate/sort')}" method="post" class="form form-horizontal" id="form-user-add">
		<table class="table table-border table-bordered">
			<thead class="text-c">
				<tr>
					<th style="width: 70px;">cid</th>
					<th>分类名</th>
					<th style="width: 70px;">排序</th>
					<th style="width: 70px;">pid</th>
					<th style="width: 250px;">操作</th>
				</tr>
			</thead>
			<tbody>
			{foreach name="data" item="v"}
				<tr>
					<td>{$v['cid']}</td>
					<td>{$v['_cname']}</td>
					<td>
						<input type="text" class="input-text" value="{$v['sort']}" placeholder="" id="user-name" name="{$v['cid']}" >
						
					</td>
					<td>{$v['pid']}</td>
					<td><a class="" href="{:url('admin/cate/addson',['cid'=>$v['cid']])}">添加子类</a>|&nbsp;
						<a class=""	href="{:url('admin/cate/edit',['cid'=>$v['cid']])}" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>&nbsp;|&nbsp;
					<a class=" " href="javascript:if(confirm('确认删除吗？')) location='{:url('admin/cate/delete',['cid'=>$v['cid']])}'" title="删除"><i class="Hui-iconfont">&#xe609;</i></a></td>
					
				</tr>
			{/foreach}
			
			</tbody>
		</table>
		<input  class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" style="margin-left: 418px;margin-top: 3px;">
	</form>
		<!--_footer 作为公共模版分离出去-->
		<script type="text/javascript" src="__STATIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
		<script type="text/javascript" src="__STATIC__/admin/lib/layer/2.4/layer.js"></script>
		<script type="text/javascript" src="__STATIC__/admin/h-ui/js/H-ui.min.js"></script>
		<script type="text/javascript" src="__STATIC__/admin/h-ui.admin/js/H-ui.admin.js"></script>

		<!--//_footer 作为公共模版分离出去-->

		<!--请在下方写此页面业务相关的脚本-->
		<script type="text/javascript" src="__STATIC__/admin/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>

	</body>

</html>